﻿/*
 * Retrieves a substring from a specified string. The substring starts at a specified character position and has a
 * specified length.
 */
create function [String].[SubString] ( @p_String nvarchar(max), @p_StartPosition int, @p_Length int )
returns nvarchar(max) as
begin

  return SubString( @p_String, @p_StartPosition, @p_Length );

end